package com.subfg.api.constant;

import com.subfg.common.entity.excpetion.BusinessExceptionModel;
import com.subfg.common.i18.MessageUtils;

public class BusinessException extends BusinessExceptionModel {
    public BusinessException(ConstantEnum constantEnum) {
        super(constantEnum.getCode(), MessageUtils.message(constantEnum.getMessage()));
    }

    public BusinessException(int code, String message) {
        super(code, MessageUtils.message(message));
    }


    public BusinessException() {
        super();
    }
}
